﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="CommonDictionarySrhForm.aspx.cs" Inherits="App_Master_CommonDictionarySrhForm" Title="数据字典维护" %>
<%@ Import Namespace="Shpm.App.Commons.Db.Beans.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <asp:Panel ID="PanelNavigate" runat="server" />
   <table width="80%">
      <tr>
        <td>
            <table class="table_border_line">
                <tr>
			    <td align="left" colspan="4" >
			    <script language="javascript">
                                        (new TitleBar('SearchBar', '检索条件')).showBar();
                            </script>
			    </td>						
		      </tr>				
            </table>
		    <table class="table_border_line"  style="background:ffffff">
		      <tr>
			    <td style="width:90px">&nbsp;</td>
			    <td style="width:120px;" align="left">字典编号</td>
			    <td align="left">&nbsp;<asp:TextBox ID="txtDictNo" runat="server" cssClass="default" MaxLength="10" Width="280"/></td>
			    <td align="right">&nbsp;</td>						
		      </tr>	

		      <tr>
			    <td style="width:90px">&nbsp;</td>
			    <td style="width:120px;" align="left">目录编号</td>
			    <td align="left">&nbsp;<asp:TextBox ID="txtCatalog" runat="server" cssClass="default" MaxLength="100" Width="280"/></td>
			    <td align="right">&nbsp;</td>						
		      </tr>			
              
		      <tr>
			    <td style="width:90px">&nbsp;</td>
			    <td style="width:120px;" align="left">目录名称</td>
			    <td align="left">&nbsp;<asp:TextBox ID="txtTitle" runat="server" cssClass="default" MaxLength="50" Width="280"/></td>
			    <td align="right">&nbsp;</td>						
		      </tr>	
      		      		      	
              <tr>
			    <td style="width:90px">&nbsp;</td>
			    <td style="width:120px;" align="left">字典内容</td>
			    <td align="left">&nbsp;<asp:TextBox ID="txtContent" runat="server" cssClass="default" MaxLength="128" Width="280"/></td>
			    <td align="right">&nbsp;</td>						
		      </tr>	       		  
            </table>	
            
	    </td>
	    <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="center">
            <asp:Button ID="btnNew" runat="server" Text="新 建" OnClick="btnNew_Click" CssClass="button1" Width="68px"/>
            <asp:Button ID="btnSearch" runat="server" Text="检 索" OnClick="btnSearch_Click" CssClass="button1" Width="68px"/>
        </td>
        <td>&nbsp;</td>
      </tr>
    </table>
    
    <br/>

    <table id="tblResult" width="80%" runat="server">
        <tr>
            <td align="left" >
            <script language="javascript">
                                        (new TitleBar('SearchBar1', '检索结果')).showBar();
                            </script>
            </td>
        </tr>
        <tr>
            <td >
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BorderWidth="0"
        CssClass="list_border_blue"
        CellSpacing="2" AllowPaging="True" DataKeyNames="DictNo,Catalog" PageSize="25" OnPageIndexChanging="GridView1_PageIndexChanging" EnableViewState="False" OnRowCommand="GridView1_RowCommand"
    >
        <Columns>
            <asp:BoundField DataField="DictNo" HeaderText="编号" >
                <ItemStyle CssClass="list_data_bg" />
                <HeaderStyle CssClass="list_title_bg_grayblue_center" />
            </asp:BoundField>
            <asp:BoundField DataField="Catalog" HeaderText="目录" >
                <ItemStyle CssClass="list_data_bg" />
                <HeaderStyle CssClass="list_title_bg_grayblue_center" />
            </asp:BoundField>
            <asp:BoundField DataField="Title" HeaderText="标题" >
                <ItemStyle CssClass="list_data_bg" />
                <HeaderStyle CssClass="list_title_bg_grayblue_center" />
            </asp:BoundField>
            <asp:BoundField DataField="Content" HeaderText="内容" >
                <ItemStyle CssClass="list_data_bg" />
                <HeaderStyle CssClass="list_title_bg_grayblue_center" />            
            </asp:BoundField>
            <asp:TemplateField HeaderText="默认值">
                <ItemStyle CssClass="list_data_bg" />
                <HeaderStyle CssClass="list_title_bg_grayblue_center" />
                <ItemTemplate>
                    <%# ( ((CommonDictionaryBean)Container.DataItem).Default!=null && ((CommonDictionaryBean)Container.DataItem).Default.Value )?"是":"否" %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:ButtonField ButtonType="Image" CommandName="details" HeaderText="详细" Text="详细"
                ImageUrl="~/images/info.gif">
                <ItemStyle CssClass="list_data_bg" />
                <HeaderStyle CssClass="list_title_bg_grayblue_center" />
            </asp:ButtonField>
        </Columns>
        <PagerStyle CssClass="list_data_bg" HorizontalAlign="Right" />

    </asp:GridView>    
    </td>
        </tr>
        <tr>
            <td ></td>
        </tr>
    </table>
</asp:Content>

